home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_08_06 / 8n06074b < prev    next >
Text File  |  1990-04-29  |  350b  |  16 lines

  1. *****Listing 6*****
  2.  
  3.    show_record(p_a_record)
  4.    /* Prints out a record, whose address is passed */
  5.    struct s_record *p_a_record;
  6.        {
  7.        int i;
  8.        char *pc;
  9.        pc = (char *) p_a_record;
  10.        for (i=0; i < NUMBER_FIELDS; i++)
  11.            {
  12.            printf("%s\n", pc + record_offsets[i]);
  13.            }
  14.        }
  15.  
  16.